import { typeProduct } from './product'
import { typeUserInfo } from './user'
export interface typeCartItem { // 购物车单个商品
    _id:string,
    product: typeProduct,
    user: typeUserInfo,
    qty: number
}
export interface typeOrderProductItem { // 订单中商品类型
    _id?: string,
    productId: string,
    name: string,
    image: string,
    price: number,
    qty: number
}
export interface typeAddress { // 地址
    province: string,
    city: string,
    address: string,
    postalCode: string
}

export type typePayment = 'wx' | 'zfb'
